<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php echo $this->Html->charset(); ?>
<title><?php echo $title_for_layout; ?></title>

<?php
	echo $this->Html->meta('icon');

	/*** CSS reset ***/
	echo $this->Html->css('reset');
	/*** Latest compiled and minified CSS ***/
	echo $this->Html->css('https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css');
	/*** Optional theme ***/
	echo $this->Html->css('https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css');
	/*** Google Font ***/
	echo $this->Html->css('http://fonts.googleapis.com/css?family=Tangerine');
	/*** Font Awesome ***/
	echo $this->Html->css('font-awesome-4.1.0/css/font-awesome.min.css');
	/*** My CSS ***/
	echo $this->Html->css('login.css');
	/*** My Common CSS ***/
	echo $this->Html->css('common');
	
	echo $scripts_for_layout;

	/*** "jquery-1.11.1.min.js" HAVE TO above all of the js files or links ***/
	 echo $this->Javascript->link('jquery-1.11.1.min.js', true);
	/*** Bootsrap JS ***/
	 echo $this->Javascript->link('https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js', true);
	/*** My JS ***/
	 echo $this->Javascript->link('login.js', true);

?>
</head>

<body class="div_bg">
	<div class="form_login">
    	<div class="logo"><?php echo $this->Html->image('insource_logo.png');?></div>
		<hr />
        <div id="login" class="tab-pane active">
        	<p class="text-muted text-center">
              Enter your username and password
            </p>

			<?php 
			/**** Import content page ****/
			echo $content_for_layout; 
			?>
				
        </div>    
    </div>
    

    <?php 
    /**** Message for Login fail ****/
    echo $this->Session->flash('auth'); 
    ?>
</body>

<?php 
/**** Generate SQL query just for develop, delete or commend when develop done ****/
echo $this->element('sql_dump'); 
?>
</html>
